<?PHP $this->_extends('_layouts/manager_layout');?>
<?PHP $this->_block('head');?>

<?PHP $this->_endblock();?>
<?PHP $this->_block('contents');?>
<h2 class="aa1">运费</h2>

<div class="tree">
<ul >
	<?php foreach($shipments as $s):  
		if($s['shipment_id']){unset($sourceshipments[$s['shipment_id']]);}
	?>
		<li><?=$s['title']?>  <a href="<?=url('/shipmentEdit',array('id'=>$s['id']))?>" style="margin-left:20px">Edit</a>  
			<?php if($s['status']&1): ?> <a href="<?=url('/shipmentstatusmodify',array('id'=>$s['id'],'status'=>'0'))?>" style="margin-left:20px" onclick="return confirm('确定停用吗')">Stop</a>
			<?php else: ?>
				<a href="<?=url('/shipmentstatusmodify',array('id'=>$s['id'],'status'=>'1'))?>" style="margin-left:20px" onclick="return confirm('确定启用吗')">Install</a>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="<?=url('/shipmentstatusmodify',array('id'=>$s['id'],'cmd'=>'remove'))?>" style="margin-left:20px" onclick="return confirm('确定删除吗')">Remove</a>
			<?php endif; ?>
		</li>
	<?php endforeach;?>
	<?php foreach($sourceshipments as $s):?>
		<li><?=$s['title']?> <a href="<?=url('/shipmentstatusmodify',array('shipment_id'=>$s['shipment_id'],'status'=>'1'))?>" style="margin-left:20px" onclick="return confirm('确定启用吗')">Install</a>
		
		</li>
	<?php endforeach;?>
</ul>
</div>

<div>
	<a href="<?=url('/shipmentedit')?>"> 添加物流 </a>
</div>
<?PHP $this->_endblock();?>

